const path = require('path');
const argv = require('minimist')(process.argv.slice(2));

let config = '';

switch (argv.env) {
case 'production':
    config = 'webpack.config.prod.js';
    break;
default:
    config = 'webpack.config.dev.js';
}

console.log(`${argv.env || '测试'} 环境打包`);

module.exports = require( path.resolve(__dirname, 'config', config) );